centerString
sop4618_SSourcesop4618_ScenterString
Description Source Call Graph
Start Line: 318
void sop4618_S::centerString(String str, int row)
{
   int len = str.length();
   if(!len)
     return;
   if(len > m_Cols)
     str[20] = 0x0;
   int idx = (20-len)/2+1;
   if(idx < 1)
      idx = 1; 
   
   cursorXY(row, idx);
   printString(str);
   flush(); 
}